Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[navigation]feat: add home icon in left bottom #7802

Merged
merged 9 commits into from
Aug 23, 2024

Conversation

SuZhou-Joe
Copy link
Member

@SuZhou-Joe SuZhou-Joe commented Aug 22, 2024

Description

  • Add home icon in left bottom and remove home in left nav as we already have the icon in left bottom.
  • Make bottom container scrollable
  • Move workspace settings to manage workspace category

Issues Resolved

Screenshot

Home icon in left bottom

image

Make left bottom container scrollable

image

Add workspace settings under manage workspace category

image

Testing the changes

Changelog

  • feat: add home icon in left bottom

Check List

  • All tests pass
    • yarn test:jest
    • yarn test:jest_integration
  • New functionality includes testing.
  • New functionality has been documented.
  • Update CHANGELOG.md
  • Commits are signed per the DCO using --signoff

Copy link

codecov bot commented Aug 22, 2024

Codecov Report

Attention: Patch coverage is 50.00000% with 2 lines in your changes missing coverage. Please review.

Project coverage is 63.83%. Comparing base (a59f8ab) to head (65c38c5).
Report is 12 commits behind head on main.

Files Patch % Lines
src/plugins/home/public/plugin.ts 0.00% 2 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7802   +/-   ##
=======================================
  Coverage   63.83%   63.83%           
=======================================
  Files        3658     3659    +1     
  Lines       81284    81282    -2     
  Branches    12972    12972           
=======================================
+ Hits        51884    51887    +3     
+ Misses      26216    26215    -1     
+ Partials     3184     3180    -4     
Flag Coverage Δ
Linux_1 30.16% <0.00%> (+<0.01%) ⬆️
Linux_2 55.87% <ø> (ø)
Linux_3 40.41% <0.00%> (-0.01%) ⬇️
Linux_4 31.29% <50.00%> (+<0.01%) ⬆️
Windows_1 30.18% <0.00%> (+<0.01%) ⬆️
Windows_2 55.82% <ø> (ø)
Windows_3 40.41% <0.00%> (-0.01%) ⬇️
Windows_4 31.29% <50.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -435,6 +435,7 @@ export function CollapsibleNavGroupEnabled({
<div
className={classNames({
'bottom-container': true,
'eui-xScroll': true,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How will this look on browser-OS combos that show a scrollbar?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I get your point, I thought the class will help to hide the scrollbar, but if not, let me find if there is any pattern code I can follow in OSD.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seem behavior of adding the utility css class follows the OS settings. Was the intention to hide the scrollbar but allow user to scroll?

Copy link
Member Author

@SuZhou-Joe SuZhou-Joe Aug 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added -ms-overflow-style: -ms-autohiding-scrollbar; to the bottom container to make the behavior of scrollbar consistent. Do you think that's good enough?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm fine with it, UX need to figure out how to fit those overflow icons, I think we can optimize this afterwards.

@@ -435,6 +435,7 @@ export function CollapsibleNavGroupEnabled({
<div
className={classNames({
'bottom-container': true,
'eui-xScroll': true,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seem behavior of adding the utility css class follows the OS settings. Was the intention to hide the scrollbar but allow user to scroll?

@SuZhou-Joe SuZhou-Joe force-pushed the feature/add-home-icon branch from 663ae7b to c7b6c35 Compare August 23, 2024 03:02
Signed-off-by: SuZhou-Joe <[email protected]>
ruanyl
ruanyl previously approved these changes Aug 23, 2024
Signed-off-by: SuZhou-Joe <[email protected]>
@SuZhou-Joe SuZhou-Joe merged commit 106b64c into opensearch-project:main Aug 23, 2024
66 of 67 checks passed
@opensearch-trigger-bot
Copy link
Contributor

The backport to 2.x failed:

The process '/usr/bin/git' failed with exit code 128

To backport manually, run these commands in your terminal:

# Navigate to the root of your repository
cd $(git rev-parse --show-toplevel)
# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/OpenSearch-Dashboards/backport-2.x 2.x
# Navigate to the new working tree
pushd ../.worktrees/OpenSearch-Dashboards/backport-2.x
# Create a new branch
git switch --create backport/backport-7802-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 106b64cd1e85df979fa8b78269b25f10057d284c
# Push it to GitHub
git push --set-upstream origin backport/backport-7802-to-2.x
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/OpenSearch-Dashboards/backport-2.x

Then, create a pull request where the base branch is 2.x and the compare/head branch is backport/backport-7802-to-2.x.

@opensearch-trigger-bot
Copy link
Contributor

The backport to 2.x failed:

The process '/usr/bin/git' failed with exit code 128

To backport manually, run these commands in your terminal:

# Navigate to the root of your repository
cd $(git rev-parse --show-toplevel)
# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/OpenSearch-Dashboards/backport-2.x 2.x
# Navigate to the new working tree
pushd ../.worktrees/OpenSearch-Dashboards/backport-2.x
# Create a new branch
git switch --create backport/backport-7802-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 106b64cd1e85df979fa8b78269b25f10057d284c
# Push it to GitHub
git push --set-upstream origin backport/backport-7802-to-2.x
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/OpenSearch-Dashboards/backport-2.x

Then, create a pull request where the base branch is 2.x and the compare/head branch is backport/backport-7802-to-2.x.

SuZhou-Joe added a commit to SuZhou-Joe/OpenSearch-Dashboards that referenced this pull request Aug 26, 2024
* feat: add home icon in left bottom

Signed-off-by: SuZhou-Joe <[email protected]>

* feat: remove useless padding

Signed-off-by: SuZhou-Joe <[email protected]>

* Changeset file for PR opensearch-project#7802 created/updated

* fix: update snapshot

Signed-off-by: SuZhou-Joe <[email protected]>

* feat: use flush

Signed-off-by: SuZhou-Joe <[email protected]>

* feat: optimize style

Signed-off-by: SuZhou-Joe <[email protected]>

* feat: move features around in nav group

Signed-off-by: SuZhou-Joe <[email protected]>

* fix: typo

Signed-off-by: SuZhou-Joe <[email protected]>

* fix: unit test

Signed-off-by: SuZhou-Joe <[email protected]>

---------

Signed-off-by: SuZhou-Joe <[email protected]>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
(cherry picked from commit 106b64c)
ruanyl pushed a commit that referenced this pull request Aug 27, 2024
…7836)

* [navigation]feat: add home icon in left bottom (#7802)

* feat: add home icon in left bottom

Signed-off-by: SuZhou-Joe <[email protected]>

* feat: remove useless padding

Signed-off-by: SuZhou-Joe <[email protected]>

* Changeset file for PR #7802 created/updated

* fix: update snapshot

Signed-off-by: SuZhou-Joe <[email protected]>

* feat: use flush

Signed-off-by: SuZhou-Joe <[email protected]>

* feat: optimize style

Signed-off-by: SuZhou-Joe <[email protected]>

* feat: move features around in nav group

Signed-off-by: SuZhou-Joe <[email protected]>

* fix: typo

Signed-off-by: SuZhou-Joe <[email protected]>

* fix: unit test

Signed-off-by: SuZhou-Joe <[email protected]>

---------

Signed-off-by: SuZhou-Joe <[email protected]>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
(cherry picked from commit 106b64c)

* fix: unit test error

Signed-off-by: SuZhou-Joe <[email protected]>

---------

Signed-off-by: SuZhou-Joe <[email protected]>
@AMoo-Miki
Copy link
Collaborator

Manually backported with #7802

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants